package com.tm.car.utils;

import lombok.Data;
import org.apache.logging.log4j.util.Strings;

import java.io.Serializable;

/**
 * @Author: Cjj
 * @Result : 返回结果
 * @Date: 2025/5/27 11:52
 */
@Data
public class Result implements Serializable {
    private static final long serialVersionUID = 1L;
    private int code;
    private String msg;
    private Object data;
    private long time;

    public Result(){
        this.time=System.currentTimeMillis();
    }

    public static Result NEW(){
      return new Result();
    }

    public Result addCode(int code){
        this.code=code;
        return this;
    }


}
